package com.snow.useviewdemo.longpicture;

import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.snow.useviewdemo.R;

import java.io.IOException;
import java.io.InputStream;

/**
 * author : zyt
 * e-mail : 632105276@qq.com
 * date   : 2019-09-23
 * desc   : 别人自定义的加载长图的ImageView
 */
public class LongPngWrapContentAct extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_long_png_wrap_content);
        BigView bigView = findViewById(R.id.big_view);
        InputStream is = null;
        try {
//            is = getAssets().open("images/bg_big_png.png");
            //滑动有点卡
            is = getAssets().open("images/bg_big_png_02.jpg");
            bigView.setImage(is);
            is.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
